export function userManageColumns() {
  return [
    {
      title: this.$t('module.userManage.userName'),
      minWidth: 150,
      key: 'first',
      align: 'center'
    },
    {
      title: this.$t('module.userManage.phone'),
      minWidth: 180,
      key: 'phone',
      align: 'center'
    },
    {
      title: this.$t('module.userManage.email'),
      minWidth: 180,
      key: 'email',
      align: 'center'
    },
    {
      title: this.$t('common.operating'),
      minWidth: 100,
      fixed: 'right',
      align: 'center',
      render: (h, params) => {
        return h(
          'RowTools',
          {
            props: {
              data: [
                {
                  type: 'icon',
                  icon: 'md-create',
                  text: this.$t('common.edit'),
                  handle: () => this.addOrEditUser(params.row)
                },
                {
                  type: 'icon',
                  icon: 'ios-trash',
                  text: this.$t('common.delete'),
                  handle: () => this.deleteUser(params.row)
                }
              ]
            }
          }
        )
      }
    }
  ]
}
